package com.hyf.popupdemo.base;

import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;

import com.hyf.popupdemo.R;

/**
 * Created by Administrator on 2017/5/23.
 */

public class BaseActivity extends com.sdr.sdrbaselibrary.base.BaseActivity {

    @Override
    protected boolean isImageHeader() {
        return false;
    }

    @Override
    protected int onHeaderBarToolbarRes() {
        return R.layout.toolbar_base;
    }

    @Override
    protected Drawable onHeaderBarDrawable() {
        Drawable drawable = new ColorDrawable(getResources().getColor(R.color.colorPrimary));
        return drawable;
    }

    @Override
    protected Object onHeaderBarImage() {
        return "";
    }


    protected Activity getActivity() {
        return this;
    }

    protected Context getContext() {
        return this;
    }
}
